<script src="jquery-1.10.2.js" type="text/javascript"></script>


<input type="text" name="uname" value="I am default value" id="unameId" />


<script type="text/javascript">
  $(document).ready(function(){


      var val = $('#unameId').val();
      alert(val)

  });
</script>

